package com.wn.budget.model;

import com.wn.budget.code.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;
import java.util.List;


@Data
@Entity
@Table(name = "material_depot")
public class MaterialDepot extends BaseEntity {
    @Column(length = 100)
    public String name;

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    @JoinColumn(name = "material_depot_Id")
    public List<Material> materials;
}
